<div class="login">
	<div class="login-container">
		<form name="login" ng-submit="submitData()">
		  <div class="form-group">
		    <label for="exampleInputEmail1">用户名</label>
		    <input type="text" class="form-control" ng-model="user.username" name="username" id="user_name" placeholder="输入用户名" ng-required="true">
		    <span ></span>
		  </div>
		  <div class="form-group">
		    <label for="exampleInputPassword1">密码</label>
		    <input type="password" class="form-control" ng-model="user.password" name="password" id="user_password" placeholder="输入密码" ng-required="true">
		  </div>
		  <div class="checkbox">
		    <label>
		      <input type="checkbox"> Check me out
		    </label>
		  </div>
		  <div class="error-container text-danger">
		 	<!--条件满足时，用户名输入不合法-->
		  	<span ng-show="login.username.$dirty&&login.username.$invalid">请输入用户名</span>
		 	<!--条件满足时，密码输入不合法-->
		  	<span ng-show="login.password.$dirty&&login.password.$invalid">请输入密码</span>
		  	<!--条件满足时，密码输入不合法-->
		  	<span ng-show="error">账号密码错误</span>
		  </div>
		  <button type="submit" ng-disabled="login.$invaild" class="btn btn-success btn-lg btn-block">Submit</button>
		</form>
	</div>
</div>

